﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.ComponentModel.DataAnnotations.Schema;
using System.Data.Entity.ModelConfiguration;

namespace Common.Models.Mapping
{
    //public class PersonMap : EntityTypeConfiguration<Person>
    //{
    //    public PersonMap()
    //    {
    //        // Primary Key
    //        this.HasKey(t => t.PersonID);

    //        this.Property(t => t.Name)
    //          .IsRequired().HasMaxLength(50);

    //        // Table & Column Mappings
    //        this.ToTable("Person");
    //        this.Property(x => x.Name).HasColumnName("Name");
    //        this.Property(t => t.Address).HasColumnName("Address");
    //        this.Property(t => t.Tel).HasColumnName("Tel");
    //    }        
    //}
}
